<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>点击按钮连续弹窗5次</title>
</head>
<body>
<div class="toggle">
  <button type=”button” onclick="f()">循环5次弹窗</button>
</div>
<script>
  function f() {
    for (let i = 0; i < 5; i++) {
      alert("弹窗"+(i+1)+"次");
    }
  }
</script>
</body>
</html>
